|
|
|
|
|
|
|
Figure B.8
You can customize the
location of any installed file. |
|
|
|
|
|
|
|
|
You can think of macros, indicated by the $(macroname) syntax, like tokens that the setup routine replaces with the actual directory path for a given machine. Consider, for example, the Windows System directory, which is usually C:\Windows\System in Windows 95 and C:\WINNT\SYSTEM32 in Windows NT. In addition, selecting a custom path during Windows setup causes the Windows System directory to be something unusual like D:\MyWin95\System. However, the $(WinSysPath) macro locates the system directory on any PC. |
|
|
|
|
|
|
|
|
Mark Any Shared Components |
|
|
|
|
|
|
|
|
The next dialog box, Shared Files, allows you to mark certain files in your installation as shared components. Shared components are typically DLLs or other files used by multiple programs. For example, if you have 10 Visual Basic programs installed on a user's machine, they all "share" the MSVBVM60.DLL runtime file. If a file is marked as shared, it is not removed during the uninstall process, unless no other applications are using the file. Visual Basic takes care of selecting shared files, and the Windows Registry keeps track of the applications that use them. Generally, you should accept the default settings on the Shared Files screen (see Figure B.9). |
|
|
|
|
|
|
|
|
|
Setting the main executable file as shared, although not its intended purpose, removes two warning messages regarding replacing an existing file. The messages are contradictory (such as Cancel Setup? followed by Continue Setup?) and probably would confuse some users. By marking the file as a shared component, you tell the setup program that the users do not need to be prompted before overwriting the file.  |
|
|
|
|
|
|
|
|
|
|
|
You can remove (or uninstall) applications by choosing Add/Remove programs from the Windows Control Panel.  |
|
|
|
|
|
|
|